package cn.wzby;

public class Sbu {
    public static void main (String [] args){
        StringBuilder sbu =  new StringBuilder();
    //插入字符串
    sbu.append("wz");
    //.append()相当于+，将指定的字符串加到此字符序列
    sbu.insert(2,"by");
    System.out.println(sbu);
    //删除字符串
        sbu.deleteCharAt(1);
        sbu.insert(0,"ok");
        //sbu.delete();
        System.out.println(sbu);
        //替换字符串
        sbu.replace(0,2,"java");
        System.out.println(sbu);
        //字符串倒序
        System.out.println(sbu.reverse());

        }
}
